<?
$mail='<br>
<br>
Hello '.$_POST[friend_name].', '.$_POST[your_name].' invites you to that you see this page.<br>
<br>
<a href="http://www.bidetoday.com/products.php?code='.$_POST[code].'">http://www.bidetoday.com/products.php?code='.$_POST[code].'</a><br>
<br>
<center>
<a href="http://www.bidetoday.com"><img src="http://www.bidetoday.com/img/logo_bidetoday.jpg" border="0"></a>
</center><br>
<br>
';

	$headers  = "MIME-Version: 1.0\r\n";
	$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
	$headers .= "From: Bidetoday <info@bidetoday.com>\r\n";
	$subject = 'Bidetoday';
//echo$mail;
	mail($_POST[friend_email], $subject, $mail, $headers);
	header('Location: ../products.php?code='.$_POST[code]);
?>